import request from "../utils/seckill";

//请求列表
export function apiSeckillCommoditys(data) {
  return request({
    url: "/api/seckillConfig/search",
    method: "get",
    params: data
  });
}

//删除
export function apiSeckilldel(data) {
  console.log("sss", data);
  return request({
    url: "/api/seckillConfig/del",
    method: "delete",
    params: data
  });
}

//编辑
export function apiSeckillSet(data) {
  return request({
    url: "/api/seckillConfig/update",
    method: "put",
    data
  });
}

//搜索
export function apiSeckillSearch(data) {
  return request({
    url: "/api/seckillConfig/searchItem",
    method: "get",
    params: data
  });
}
